/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.po.PracticeRecordPO;
import com.xy.biz.ts.domain.query.PracticeRecordQuery;

/**
 *
 *
 * @author wwj
 * @date 2021-4-7
 */
public interface PracticeRecordDao {

	/**
	 * 保存
	 *
	 * @param practiceRecordPO
	 */
	int savePracticeRecord(PracticeRecordPO practiceRecordPO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllPracticeRecord(Collection<PracticeRecordPO> collection);

	/**
	 * 更新
	 *
	 * @param practiceRecordPO
	 */
	int updatePracticeRecord(PracticeRecordPO practiceRecordPO);

	/**
	 * 删除
	 *
	 * @param practiceRecordId
	 */
	int deletePracticeRecord(Long practiceRecordId);

	/**
	 * 查找一个
	 *
	 * @param practiceRecordId
	 * @return
	 */
	PracticeRecordPO getPracticeRecord(Long practiceRecordId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<PracticeRecordPO> listPracticeRecordById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<PracticeRecordPO> listPracticeRecord(PracticeRecordQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countPracticeRecord(PracticeRecordQuery query);

}
